package io.renren.modules.substation.service.impl;

import io.renren.modules.substation.entity.TBusiDevMonitorInfoEntity;
import io.renren.modules.substation.entity.TBusiDevReportInfo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TBusiDevMonitorHisDao;
import io.renren.modules.substation.entity.TBusiDevMonitorHisEntity;
import io.renren.modules.substation.service.TBusiDevMonitorHisService;


@Service("tBusiDevMonitorHisService")
public class TBusiDevMonitorHisServiceImpl extends ServiceImpl<TBusiDevMonitorHisDao, TBusiDevMonitorHisEntity> implements TBusiDevMonitorHisService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TBusiDevMonitorHisEntity> page = this.page(
                new Query<TBusiDevMonitorHisEntity>().getPage(params),
                new QueryWrapper<TBusiDevMonitorHisEntity>()
        );

        return new PageUtils(page);
    }
    @Override
    public List<TBusiDevMonitorHisEntity> queryMonitorHisByCondition(TBusiDevMonitorHisEntity tBusiDevMonitorHisEntity){

        return (List<TBusiDevMonitorHisEntity>) baseMapper.queryMonitorHisByCondition(tBusiDevMonitorHisEntity);
    }
    @Override
    public TBusiDevReportInfo queryVarForReport(TBusiDevReportInfo tBusiDevReportInfo)
    {
        return baseMapper.queryVarForReport(tBusiDevReportInfo);
    }
}